﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="XemDSPDH.ascx.cs" Inherits="Admin_Parts_XemDSPDH" %>

<asp:Panel ID="Panel1" runat="server">
    <center>
        <asp:Label ID="Label1" runat="server" Text="Xem Danh Sách Đơn Đặt Hàng" 
            Font-Bold="True" Font-Italic="False" Font-Size="18pt"></asp:Label>
        
        <br />        
        <br />

        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            AutoGenerateSelectButton="True" BackColor="White" 
            BorderColor="#999999" BorderWidth="1px" CellPadding="3" ForeColor="Black" 
            GridLines="Vertical" BorderStyle="Solid">
            <FooterStyle BackColor="#CCCCCC" />
            <Columns>
                <asp:BoundField DataField="MaPDH" HeaderText="Mã Phiếu" 
                    SortExpression="MaPDH" />
                <asp:BoundField DataField="NgayDatHang" HeaderText="Ngày Đặt Hàng" 
                    SortExpression="NgayDatHang" />
                <asp:BoundField DataField="ThanhTien" HeaderText="Thành Tiền" 
                    SortExpression="ThanhTien" />
                <asp:BoundField DataField="PhiVanChuyen" HeaderText="Phí Vận Chuyển" 
                    SortExpression="PhiVanChuyen" />
                <asp:BoundField DataField="MaKhachHang" HeaderText="Mã KhachHang" 
                    SortExpression="MaKhachHang" />
                <asp:TemplateField HeaderText="Tình Trạng">
                    <ItemTemplate>
                        <asp:DropDownList ID="dropl1" runat="server"
                        SelectedValue='<%# Bind("MaTinhTrang") %>' Enabled="False"                        
                        >
                            <asp:ListItem Value="0">Chờ duyệt</asp:ListItem>
                            <asp:ListItem Value="1">Đã duyệt</asp:ListItem>
                            <asp:ListItem Value="-1">Hủy</asp:ListItem>
                        </asp:DropDownList>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <PagerStyle BackColor="#999999" ForeColor="Black" 
                HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#000099" ForeColor="White" Font-Bold="True" />
            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="#CCCCCC" />
        </asp:GridView>
        
        <br />

        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
            Text="Xem chi tiết" />

        <br />
        
    </center>
</asp:Panel>